'''
Author: aggfb 714740235@qq.com
Date: 2024-10-23 07:29:45
LastEditors: aggfb 714740235@qq.com
LastEditTime: 2024-10-24 06:52:44
FilePath: \pythonProject1\protocol.py
Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
'''
import json

data = {'name': 'John', 'age': 30, 'city': 'New York'}
json_string = json.dumps(data, indent=4)  # 美观输出，缩进4个空格
print(json_string)
